package siedler.GUI.interfaces;

import siedler.GUI.other.Coordinate;

/**
 * An 2D object that can do something if it is klicked.
 * 
 * @author Krisi
 */
public interface Klickable {

	static final Coordinate zeroCoord = new Coordinate();	// Coordinate for 0/0
	
	/**
	 * Returns the coordinates of this component
	 */
	public Coordinate getPosition();
	/*
	 * return position;
	 */
	
	/**
	 * Returns the coordinates of this component
	 */
	public Coordinate getKlickArea();
	/*
	 * return klickCoord;
	 */
	
	/**
	 * @param x	- x-koordinate
	 * @param y - y-koordinate
	 * @return true if component is at position x/y
	 */
	public boolean isKlickedBy(int x, int y);
	/*
	 * return coord.contains(x,y);
	 */

	/**
	 * Starts an action
	 */
	public boolean klickIt();
	/*
	 * ...work...
	 */
	
}
